package com.yike.product.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品品牌
 *
 * @author Sakura
 * @since 2024-10-18
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "商品品牌信息")
public class GoodsBrandVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("品牌ID")
    private Long id;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("是否展示：1展示 0不展示")
    private Boolean displayed;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("商品数量")
    private Integer goodsNum;

}
